package com.Arsanesia.TempleRush.Controllers.Listeners.ButtonListeners;

import com.Arsanesia.TempleRush.TempleRush;
import com.Arsanesia.TempleRush.Controllers.Listeners.ChangeScreenOnClickListener;
import com.Arsanesia.TempleRush.Enumeration.TempleRushSound;
import com.Arsanesia.TempleRush.Models.GameConfiguration;
import com.badlogic.gdx.scenes.scene2d.InputEvent;

public class PlayButtonListener extends ChangeScreenOnClickListener{
	public PlayButtonListener(TempleRush game){
		super(game);
	}
	public void clicked(InputEvent event, float x, float y){
		super.clicked(event, x, y);
		GameConfiguration.playSoundEffect(TempleRushSound.CLICK);
		//if clicked, skip the story
		game.setScreen(game.getGameScreen());
	}
}
